package com.shiguiwu.springmybatis.spring.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: 加注解的
 * @author: stone
 * @date: Created by 2021/9/15 14:57
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.configuration
 */
@Configuration
public class BeanAnnConfig {


    @Bean
    public SpringBean1 springBean1() {
        return new SpringBean1(this.springBean3());
    }


    @Bean
    public SpringBean1 springBean2() {
        return new SpringBean1(this.springBean3());
    }

    @Bean
    public SpringBean2 springBean3() {
        System.out.println("执行依赖构造。。。。。。。。。。。。。。。。。。。。ann");
        return new SpringBean2();
    }


}
